﻿<%@ Page Language="C#" MasterPageFile="~/HMS.Master" AutoEventWireup="true" CodeBehind="UserAccountCreation.aspx.cs" Inherits="ReservationModule.UserAccountCreation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .auto-style11
        {
            width: 94px;
            text-align: left;
            height: 44px;
        }
        .auto-style10
        {
            text-align: left;
            height: 44px;
        }
        .auto-style2
        {
            width: 100%;
        height: 104px;
    }
        .auto-style12
    {
        width: 94px;
        text-align: left;
        height: 35px;
    }
    .auto-style13
    {
        text-align: left;
        height: 35px;
            margin-left: 40px;
        }
        .auto-style3
        {
            width: 95px;
            text-align: right;
        }
        .auto-style15
        {
            text-align: left;
            height: 35px;
        }
    </style>
    </asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h2>Create </h2>
<h3 style="width: 263px; height: 26px">-User Account Particulars-</h3>

     <table class="auto-style2">
         <tr>
             <td class="auto-style12">Staff ID:<br />
             </td>
             <td class="auto-style15">
                 <asp:TextBox ID="tbxStaffID" runat="server" OnTextChanged="tbxStaffID_TextChanged"></asp:TextBox>
&nbsp;<asp:Button ID="btnGenerateID" runat="server" Height="21px" OnClick="btnGenerateID_Click" Text="Auto Generate" Width="121px" />
             &nbsp;&nbsp;&nbsp;
                 <asp:Label ID="Label1" runat="server"></asp:Label>
             &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxStaffID" ErrorMessage="Please enter Staff ID!" ForeColor="Red" ValidationGroup="1"></asp:RequiredFieldValidator>
             </td>
         </tr>
         <tr>
             <td class="auto-style12">Password:</td>
             <td class="auto-style13">
                 <asp:TextBox ID="tbxPassword" runat="server"></asp:TextBox>
             &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxPassword" ErrorMessage="Please enter password!" ForeColor="#FF3300" ValidationGroup="1"></asp:RequiredFieldValidator>
             </td>
         </tr>
         <tr>
             <td class="auto-style11">Staff Type:<br />
             </td>
             <td class="auto-style10">
                 &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" Height="24px" Width="133px">
                     <asp:ListItem>Receptionist</asp:ListItem>
                     <asp:ListItem>Manager</asp:ListItem>
                     <asp:ListItem>Administrator</asp:ListItem>
                 </asp:DropDownList>
             </td>
         </tr>
         <tr>
             <td class="auto-style11">Staff NRIC:</td>
             <td class="auto-style10">
                 <asp:TextBox ID="tbxNRIC" runat="server"></asp:TextBox>
             &nbsp;
                 <asp:Button ID="btnCheck" runat="server" OnClick="btnCheck_Click" Text="Check" />
&nbsp;&nbsp;
                 <asp:Label ID="lblExist" runat="server" Text="Already Exists!" Visible="False" ForeColor="Red"></asp:Label>
             &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxNRIC" ErrorMessage="Please enter Staff NRIC!" ForeColor="#FF3300" ValidationGroup="1"></asp:RequiredFieldValidator>
             </td>
         </tr>
     </table>
       
     <table class="auto-style2">
         <tr>
             <td class="auto-style3">&nbsp;</td>
             <td style="margin-left: 200px">
                 <asp:Button ID="btnCreate" runat="server" Text="Create" OnClick="btnCreate_Click" style="height: 26px" ValidationGroup="1" />
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:Button ID="btnBack" runat="server" style="margin-left: 1px" Text="Back" />
             </td>
         </tr>
     </table>
       
<br />
        </asp:Content>